<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: checkout_new_address.php 135 2013-09-22 07:30:55Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 135 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:30:55 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$module_smarty = new Smarty();
$module_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');

require_once(DIR_FS_INC.'inc.get_country_list.php');

if(!isset($process))
	$process = false;

require(DIR_WS_CLASSES.'class.input_fields.php');
$field = new input_fields('create_account');

$gender_male = $field->getField('gender', 'm');
$gender_female = $field->getField('gender', 'f');
$title = $field->getField('title', '', ' size="6"');
$firstname = $field->getField('firstname');
$lastname = $field->getField('lastname');
$company = $field->getField('company');
$street_address = $field->getField('street_address', '', ' size="21" class="create_account_street"');
$street_address_num = $field->getField('street_address_num', '', ' size="3" class="create_account_street_num"');
$suburb = $field->getField('suburb');
$postcode = $field->getField('postcode', '', ' size="5"  class="create_account_postcode"');
$city = $field->getField('city', '', ' size="19" class="create_account_city"');
$state = $field->getField('state', '', ' class="create_account_state"');
$country = $field->getField('country', '', ' class="create_account_state" id="country"');

$module_smarty->assign('INPUT_TITLE', $title);
$module_smarty->assign('INPUT_MALE', $gender_male);
$module_smarty->assign('INPUT_FEMALE', $gender_female);
$module_smarty->assign('INPUT_FIRSTNAME', $firstname);
$module_smarty->assign('INPUT_LASTNAME', $lastname);
$module_smarty->assign('INPUT_COMPANY', $company);
$module_smarty->assign('INPUT_STREET', $street_address);
$module_smarty->assign('INPUT_STREET_NUM', $street_address_num);
$module_smarty->assign('INPUT_SUBURB', $suburb);
$module_smarty->assign('INPUT_CODE', $postcode);
$module_smarty->assign('INPUT_CITY', $city);
$module_smarty->assign('INPUT_STATE', $state);
$module_smarty->assign('INPUT_COUNTRY', $country);

$module_smarty->assign('language', $_SESSION['language']);

$module_smarty->caching = false;
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_new_address.html');

$smarty->assign('MODULE_new_address', $module);